package entity;

import java.util.List;

/**
 * 分页 VO
 * Created by tanjing on 2018/12/27.
 */
public class PageVO {
    private int currentPages;//当前页数
    private int pageSize;  //每页多少条

    private long totalPages;// 总页数
    private long totalElements;// 总条数

    private boolean firstPage;//是否是第一页
    private boolean lastPage;//是否是最后一页

    private List dataList;  //数据集
    private int refreshNumber;  //刷新数据条目；

    public int getCurrentPages() {
        return currentPages;
    }

    public void setCurrentPages(int currentPages) {
        this.currentPages = currentPages;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(long totalPages) {
        this.totalPages = totalPages;
    }

    public long getTotalElements() {
        return totalElements;
    }

    public void setTotalElements(long totalElements) {
        this.totalElements = totalElements;
    }

    public boolean isFirstPage() {
        return firstPage;
    }

    public void setFirstPage(boolean firstPage) {
        this.firstPage = firstPage;
    }

    public boolean isLastPage() {
        return lastPage;
    }

    public void setLastPage(boolean lastPage) {
        this.lastPage = lastPage;
    }

    public List<Object> getDataList() {
        return dataList;
    }

    public void setDataList(List dataList) {
        this.dataList = dataList;
    }

    public int getRefreshNumber() {
        return refreshNumber;
    }

    public void setRefreshNumber(int refreshNumber) {
        this.refreshNumber = refreshNumber;
    }
}
